package cn.chenxiejia.demo.controller;

import cn.chenxiejia.demo.dao.TestMapper;
import cn.chenxiejia.demo.service.TestService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("test")
@Slf4j
public class TestController {

    @Autowired
    private TestService testService;



    @GetMapping("test")
    public String test(){
        String test = testService.test();
        return test;
    }
}
